package com.tm.enums;

/**
 * @author huangp
 * @create 2023-03-01 12:27
 */
public enum StatusCodeEnum {

    SUCCESS(2000,"操作成功！"),
    ERROR(5000,"操作失败"),
    PSERROR(600,"账号密码为空"),
    PSERRORY(601,"账号密码错误"),
    PSERRORYE(602,"账号密码错误"),
    PSERROR_STATUS(603,"账号已被冻结"),
    NOT_LOGIN(605,"未登录"),
    CODE_ERROR(609,"验证码错误"),
    SEND_MSG_FRQUENTLY_ERROR(606,"验证码发送过于频繁");

    private Integer code;

    private String message;

    StatusCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
